﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Net.Chirash.Twitter.TwitterClient;
using Net.Chirash.Twitter.TwitterDatabase;

namespace Net.Chirash.Twitter.TweetZone.WindowComponents.MiniControls
{
    /// <summary>
    /// UserImage.xaml の相互作用ロジック
    /// </summary>
    public partial class UserImage : UserControl
    {
        #region Constructors

        public UserImage(User user)
        {
            InitializeComponent();
            this.user = user;
            DataContext = user;
        }

        #endregion

        #region Private Events

        private void ThumbImage_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            new UserProfileWindow(user, true);
        }

        #endregion

        #region Private Fields

        private User user;

        #endregion
    }
}
